<script setup lang="ts">
import {
  NDialogProvider,
  NConfigProvider,
  NGlobalStyle,
  darkTheme,
  zhCN,
  dateZhCN
} from 'naive-ui';

</script>

<template>
  <n-config-provider :theme="darkTheme" :locale="zhCN" :date-locale="dateZhCN">
    <n-global-style />
    <n-dialog-provider>
      <router-view v-slot="{ Component }">
        <component :is="Component" class="view"></component>
      </router-view>
    </n-dialog-provider>
  </n-config-provider>
</template>

<style lang="less">
@font-face {
  font-family: "lcd";
  src: url("./assets/lcd.ttf")
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent !important;
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 10px;
  user-select: none;
}

#app {
  width: 100vw;
  height: 100vh;
}

.view {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}
</style>
